package org.aurora.three.random_6;

import jdk.internal.org.objectweb.asm.tree.FrameNode;

import java.util.concurrent.ThreadLocalRandom;

/**
 * @author : Aurora
 * @date : 2024/3/19 15:15
 * @description
 */
public class ThreadLocalRandomUse {
    public static void main(String[] args) {
        new Thread();
        ThreadLocalRandom random = ThreadLocalRandom.current();
        //输出0-5（含0不含5）之间的随机数
        System.out.println(random.nextInt(5));
    }
}
